package com.y.server.mapper;

import com.y.pojo.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


    @Mapper
    public interface  UserMapper {

        @Select("select * from users where username = #{username}")
        User findByName(String name);


        @Insert("insert into  tb_user(username,password,create_user,update_user,create_time,update_time)"+
                "values"
                +"(#{username},#{password},#{createUser},#{updateUser},#{createTime},#{updateTime})")
        void update(User user);
    }

